package com.amado.course43awt;

import java.awt.*;
public class QQ2007 extends Frame
{
	QQ2007(String name)
	{
		super(name);
		setLayout(new BorderLayout(4,10));
		Panel pUp = new Panel();
		Panel pUps = new Panel();
		Panel pDown = new Panel();
		Panel pCenter = new Panel();
		Panel pCenters = new Panel();
		Panel p1=new Panel();
		Choice che=new Choice();
		che.add("12345");
		add(pUps,BorderLayout.NORTH);
		add(pDown,BorderLayout.SOUTH);
		add(pCenters,BorderLayout.CENTER);
		
		pCenters.setLayout(new BorderLayout());
		pCenters.add(new Panel(),BorderLayout.WEST);
		pCenters.add(pCenter,BorderLayout.CENTER);
		pCenters.add(new Panel(),BorderLayout.EAST);
	//	pUp.setLayout(new GridLayout(1,2));
		pUps.setLayout(new BorderLayout());
		pUps.add(new Panel(),BorderLayout.NORTH);
		pUps.add(pUp,BorderLayout.CENTER);
//		pUps.add(new Panel(),BorderLayout.SOUTH);
		pUp.add(new Label("QQ2007最新版本",Label.CENTER));
		pUp.add(p1);
		pCenter.setLayout(new GridLayout(6,3));
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Label("        QQ号码",Label.CENTER));
		pCenter.add(che);
		pCenter.add(new Label("    申请号码"));
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Label("        QQ密码",Label.CENTER));
		pCenter.add(new TextField());
		pCenter.add(new Label("    忘记密码？"));
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		pCenter.add(new Panel());
		Panel temp = new Panel();
		temp.setLayout(new GridLayout(1,2));
		temp.add(new Checkbox("自动登陆"));
		temp.add(new Checkbox("隐身登陆"));
		pCenter.add(temp);
		pCenter.add(new Panel());
		
		Panel pDowns = new Panel();
		pDown.setLayout(new BorderLayout(25,3));
		pDown.add(pDowns,BorderLayout.CENTER);
		pDown.add(new Panel(),BorderLayout.EAST);
		pDown.add(new Panel(),BorderLayout.WEST);
		pDown.add(new Panel(),BorderLayout.SOUTH);
		pDown.add(new Panel(),BorderLayout.NORTH);
		pDowns.setLayout(new GridLayout(1,4,13,1));
		pDowns.add(new Button("查杀木马"));
		pDowns.add(new Button("设  置"));
		pDowns.add(new Panel());
		pDowns.add(new Button("登  陆"));
		setBounds(300,200,400,270);
	//	pDowns.setBackground(new Color(104,222,225));
		pUps.setBackground(new Color(92,252,101));
	    pCenter.setBackground(new Color(216,251,254));
		setBackground(new Color(184,240,241));
		setVisible(true);
	}
	public static void main(String[] args) 
	{
		new QQ2007("用户登陆器");
	}
}
